<template>
  <div id="main_div">
    <el-card style="width: 500px;height: 400px;margin: 50px auto">
      <h1>欢迎注册</h1>
      <el-form label-width="100px" style="margin-top: 50px">
        <el-form-item label="手机号">
          <el-input placeholder="请输入手机号码"></el-input>
        </el-form-item>
        <el-form-item label="验证码">
          <el-input placeholder="请输入验证码"></el-input>
        </el-form-item>
        <el-form-item label="密码">
          <el-input type="password" placeholder="请输入密码"></el-input>
        </el-form-item>
        <el-form-item>
          <el-radio-group v-model="radio">
            <el-radio :label="3">注册即表示你同意遵守<a>《服务协议》</a></el-radio>
          </el-radio-group>
        </el-form-item>
        <el-form-item>
          <el-button @click="reg()" type="primary">注册</el-button>
        </el-form-item>
      </el-form>

    </el-card>
  </div>
</template>

<script setup>

import router from "@/router";

const reg=()=>{
  router.push('/detail')
}

</script>

<style scoped>
#main_div{
  overflow: hidden;
  height: 500px;
  /*background-image: url("/public/imgs/loginbg.gif");*/
  background-size: cover;/*设置封面尺寸*/
  background-position: center;/*设置背景图片居中*/
}
</style>